package com.bs.dao.impl;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.bs.bean.Maoli;
import com.bs.dao.MaoliDAO;

public class MaoliDAOImpl extends SqlMapClientDaoSupport  implements MaoliDAO {

	@SuppressWarnings("unchecked")
	@Override
	public List<Maoli> findAll() {
		
		return this.getSqlMapClientTemplate().queryForList("maoli.findAll");
	}

	@Override
	public Maoli findByMaoli(double maoli) {
		return (Maoli) this.getSqlMapClientTemplate().queryForObject("maoli.findByMaoli",maoli);
	}
	
}
